const __lodash = require('lodash');
const devParams = {
    // js压缩参数
    uflifyParams: {
        compress: {
            drop_console: false,
            drop_debugger: false,
            conditionals: false
        },
        output: {
            wrap_iife: true
        }
    },
    // postcss参数
    postcssParams: [],
    // babel参数
    babelParams: {
        presets: ['@babel/env']
    },
    // sass参数
    sassParams: {
        outputStyle: 'expanded'
    },
    // src参数
    srcParams: {
        allowEmpty: true
    },
    // include参数
    includeParams: {
        hardFail: true,
        separateInputs: true
    }
};
const buildParams = {
    uflifyParams: {
        compress: {
            drop_console: true,
            drop_debugger: true,
            conditionals: true
        }
    },
    // sass参数
    sassParams: {
        outputStyle: 'compressed'
    }
};
const config = {
    dev: devParams,
    build: __lodash.merge(__lodash.cloneDeep(devParams), buildParams)
};
module.exports = config;
